
#pragma warning( disable: 4049 )  /* more than 64k source lines */

/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 6.00.0347 */
/* at Wed Mar 26 14:52:37 2008
 */
/* Compiler settings for src\msw\ActiveScript.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 440
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __ActiveScript_h__
#define __ActiveScript_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifndef __ISite_FWD_DEFINED__
#define __ISite_FWD_DEFINED__
typedef interface ISite ISite;
#endif 	/* __ISite_FWD_DEFINED__ */


#ifndef __IScriptEngine_FWD_DEFINED__
#define __IScriptEngine_FWD_DEFINED__
typedef interface IScriptEngine IScriptEngine;
#endif 	/* __IScriptEngine_FWD_DEFINED__ */


#ifndef __IScriptEngine2_FWD_DEFINED__
#define __IScriptEngine2_FWD_DEFINED__
typedef interface IScriptEngine2 IScriptEngine2;
#endif 	/* __IScriptEngine2_FWD_DEFINED__ */


#ifndef __Site_FWD_DEFINED__
#define __Site_FWD_DEFINED__

#ifdef __cplusplus
typedef class Site Site;
#else
typedef struct Site Site;
#endif /* __cplusplus */

#endif 	/* __Site_FWD_DEFINED__ */


#ifndef __ScriptEngine_FWD_DEFINED__
#define __ScriptEngine_FWD_DEFINED__

#ifdef __cplusplus
typedef class ScriptEngine ScriptEngine;
#else
typedef struct ScriptEngine ScriptEngine;
#endif /* __cplusplus */

#endif 	/* __ScriptEngine_FWD_DEFINED__ */


/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"

#ifdef __cplusplus
extern "C"{
#endif 

void * __RPC_USER MIDL_user_allocate(size_t);
void __RPC_USER MIDL_user_free( void * ); 

#ifndef __ISite_INTERFACE_DEFINED__
#define __ISite_INTERFACE_DEFINED__

/* interface ISite */
/* [unique][helpstring][nonextensible][oleautomation][uuid][object] */ 


EXTERN_C const IID IID_ISite;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("E8E96F00-C30E-4944-9CB1-07D9EF41A288")
    ISite : public IUnknown
    {
    public:
    };
    
#else 	/* C style interface */

    typedef struct ISiteVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            ISite * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            ISite * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            ISite * This);
        
        END_INTERFACE
    } ISiteVtbl;

    interface ISite
    {
        CONST_VTBL struct ISiteVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define ISite_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define ISite_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define ISite_Release(This)	\
    (This)->lpVtbl -> Release(This)


#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __ISite_INTERFACE_DEFINED__ */


#ifndef __IScriptEngine_INTERFACE_DEFINED__
#define __IScriptEngine_INTERFACE_DEFINED__

/* interface IScriptEngine */
/* [unique][helpstring][dual][uuid][object] */ 


EXTERN_C const IID IID_IScriptEngine;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("1AC11C05-3AC0-40EE-8E38-53B2BCA56EF2")
    IScriptEngine : public IDispatch
    {
    public:
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE loadScriptText( 
            /* [in] */ BSTR sLanguage,
            /* [in] */ BSTR sScript) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetScriptObject( 
            /* [retval][out] */ IDispatch **ppDispScript) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddNamedItem( 
            /* [in] */ BSTR sName,
            IDispatch *pObject) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE loadScriptURL( 
            /* [in] */ BSTR sLanguage,
            /* [in] */ BSTR sURL) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IScriptEngineVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IScriptEngine * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IScriptEngine * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IScriptEngine * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IScriptEngine * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IScriptEngine * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IScriptEngine * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IScriptEngine * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *loadScriptText )( 
            IScriptEngine * This,
            /* [in] */ BSTR sLanguage,
            /* [in] */ BSTR sScript);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetScriptObject )( 
            IScriptEngine * This,
            /* [retval][out] */ IDispatch **ppDispScript);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddNamedItem )( 
            IScriptEngine * This,
            /* [in] */ BSTR sName,
            IDispatch *pObject);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *loadScriptURL )( 
            IScriptEngine * This,
            /* [in] */ BSTR sLanguage,
            /* [in] */ BSTR sURL);
        
        END_INTERFACE
    } IScriptEngineVtbl;

    interface IScriptEngine
    {
        CONST_VTBL struct IScriptEngineVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IScriptEngine_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IScriptEngine_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IScriptEngine_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define IScriptEngine_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define IScriptEngine_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define IScriptEngine_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define IScriptEngine_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)


#define IScriptEngine_loadScriptText(This,sLanguage,sScript)	\
    (This)->lpVtbl -> loadScriptText(This,sLanguage,sScript)

#define IScriptEngine_GetScriptObject(This,ppDispScript)	\
    (This)->lpVtbl -> GetScriptObject(This,ppDispScript)

#define IScriptEngine_AddNamedItem(This,sName,pObject)	\
    (This)->lpVtbl -> AddNamedItem(This,sName,pObject)

#define IScriptEngine_loadScriptURL(This,sLanguage,sURL)	\
    (This)->lpVtbl -> loadScriptURL(This,sLanguage,sURL)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IScriptEngine_loadScriptText_Proxy( 
    IScriptEngine * This,
    /* [in] */ BSTR sLanguage,
    /* [in] */ BSTR sScript);


void __RPC_STUB IScriptEngine_loadScriptText_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IScriptEngine_GetScriptObject_Proxy( 
    IScriptEngine * This,
    /* [retval][out] */ IDispatch **ppDispScript);


void __RPC_STUB IScriptEngine_GetScriptObject_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IScriptEngine_AddNamedItem_Proxy( 
    IScriptEngine * This,
    /* [in] */ BSTR sName,
    IDispatch *pObject);


void __RPC_STUB IScriptEngine_AddNamedItem_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IScriptEngine_loadScriptURL_Proxy( 
    IScriptEngine * This,
    /* [in] */ BSTR sLanguage,
    /* [in] */ BSTR sURL);


void __RPC_STUB IScriptEngine_loadScriptURL_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __IScriptEngine_INTERFACE_DEFINED__ */


#ifndef __IScriptEngine2_INTERFACE_DEFINED__
#define __IScriptEngine2_INTERFACE_DEFINED__

/* interface IScriptEngine2 */
/* [unique][helpstring][dual][uuid][object] */ 


EXTERN_C const IID IID_IScriptEngine2;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("78BF78CE-A54A-46b9-8200-D2C9EA582B4F")
    IScriptEngine2 : public IDispatch
    {
    public:
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE addScriptText( 
            /* [in] */ BSTR sScript) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddGlobalMembers( 
            /* [in] */ IDispatch *pObject) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IScriptEngine2Vtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IScriptEngine2 * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IScriptEngine2 * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IScriptEngine2 * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IScriptEngine2 * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IScriptEngine2 * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IScriptEngine2 * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IScriptEngine2 * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *addScriptText )( 
            IScriptEngine2 * This,
            /* [in] */ BSTR sScript);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddGlobalMembers )( 
            IScriptEngine2 * This,
            /* [in] */ IDispatch *pObject);
        
        END_INTERFACE
    } IScriptEngine2Vtbl;

    interface IScriptEngine2
    {
        CONST_VTBL struct IScriptEngine2Vtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IScriptEngine2_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IScriptEngine2_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IScriptEngine2_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define IScriptEngine2_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define IScriptEngine2_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define IScriptEngine2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define IScriptEngine2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)


#define IScriptEngine2_addScriptText(This,sScript)	\
    (This)->lpVtbl -> addScriptText(This,sScript)

#define IScriptEngine2_AddGlobalMembers(This,pObject)	\
    (This)->lpVtbl -> AddGlobalMembers(This,pObject)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IScriptEngine2_addScriptText_Proxy( 
    IScriptEngine2 * This,
    /* [in] */ BSTR sScript);


void __RPC_STUB IScriptEngine2_addScriptText_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IScriptEngine2_AddGlobalMembers_Proxy( 
    IScriptEngine2 * This,
    /* [in] */ IDispatch *pObject);


void __RPC_STUB IScriptEngine2_AddGlobalMembers_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __IScriptEngine2_INTERFACE_DEFINED__ */



#ifndef __ActiveScriptLib_LIBRARY_DEFINED__
#define __ActiveScriptLib_LIBRARY_DEFINED__

/* library ActiveScriptLib */
/* [helpstring][version][uuid] */ 


EXTERN_C const IID LIBID_ActiveScriptLib;

EXTERN_C const CLSID CLSID_Site;

#ifdef __cplusplus

class DECLSPEC_UUID("8A143DD0-E510-467b-968C-53B85CD8525B")
Site;
#endif

EXTERN_C const CLSID CLSID_ScriptEngine;

#ifdef __cplusplus

class DECLSPEC_UUID("5AC25497-DDA9-4b3c-A51B-2C579D18955A")
ScriptEngine;
#endif
#endif /* __ActiveScriptLib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


